﻿using BussinessObject.ObjectOne;
using Class_Entity.ObjectOne;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectHK3
{
    public partial class Services : System.Web.UI.Page
    {
        private int serviceId;
        B_Service ex = new B_Service();
        C_Service fx = new C_Service();
        protected void Page_Load(object sender, EventArgs e)
        {
            serviceId = Convert.ToInt32(Request.QueryString["id"].ToString());
            if (!IsPostBack)
            {
                load();
            }
        }
        public void load()
        {
             fx = ex.ServiceName(serviceId);
            _lblServiceName.Text = fx.SERVICES_NAME;
            _ltrDescription.Text = fx.DESCRIPTION;
            this._grwFeePolicy.DataSource = ex.ServiceDetail(serviceId).DefaultView;
            _grwFeePolicy.DataBind();
        }            

        protected void _grwFeePolicy_SelectedIndexChanged1(object sender, EventArgs e)
        {

        }
    }
}